<template>
  <div>
    <iframe ref="iframe"  :src="url"  frameborder="0" width="450px" height='400px'   ></iframe>
  </div>
</template>
<script>
  export default {
    props: {
      pactUrl:{}
    },
    data() {
      return {
        url: '',
      }
    },
    watch: {
      pactUrl(val) {
        if (val) {
          this.$refs.iframe.contentWindow.location.replace(val)
        }
      }
    },
  }
</script>
